<template xmlns:el-col="http://www.w3.org/1999/html" style="width: 100%">
  <div class="Test">
<h1>查看已选项</h1>
    <el-table
      :data="tableData"
      style="width: 100%;">
      <el-table-column
        prop="date"
        label="物资编号"
        >
      </el-table-column>
      <el-table-column label="已选物资信息">
        <el-table-column
          prop="name"
          label="物资图片"
         >
        </el-table-column>

          <el-table-column
            prop="province"
            label="物资名称"
            >
          </el-table-column>
          <el-table-column
            prop="city"
            label="物资数量"
            >
<!--            <el-input-number v-model="num"  :min="1" :max="10" label="描述文字"></el-input-number>-->
          </el-table-column>


          <el-table-column label="操作">
          <template slot-scope="scope">
            <el-button
              size="mini"
              type="danger"
              @click="handleDelete(scope.$index, scope.row)">删除</el-button>
          </template>
        </el-table-column>
        </el-table-column>
    </el-table>
<!--    分页-->
    <div style="text-align: center;margin-top: 20px">
      <el-pagination
        background
        layout="prev, pager, next"
        :total="1000">
      </el-pagination>
    </div>
<!--    提交按钮-->
    <div style="width:93%;text-align: right;margin-top: 10px">  <el-button type="primary" >提交</el-button></div>

  </div>
</template>

<script>

  export default {
    data() {
      return {
        num:1,
        tableData: [{
          date: '2016-05-03',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
        }, {
          date: '2016-05-02',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
        }, {
          date: '2016-05-04',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
        }, {
          date: '2016-05-01',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
        }, {
          date: '2016-05-08',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
        }, {
          date: '2016-05-06',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
        }, {
          date: '2016-05-07',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
        }],
        methods: {
          handleDelete(index, row) {
            console.log(index, row);
          }
        }
      }

    }
    }
</script>

<style >
  .el-input{
    width: 400px;
  }
  .el-header, .el-footer {
    /*background-color: #B3C0D1;*/
    color: #333;
    text-align: center;
    line-height: 60px;
  }

  .el-aside {
    /*background-color: #D3DCE6;*/
    color: #333;
    text-align: center;
    /*line-height: 200px;*/
  }

  .el-main {

    color: #333;
    text-align: center;

  }

  body > .el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
